﻿using System.Xml.Serialization;

namespace SelfService.HaiTai.Models.Appointment;

[XmlRoot("res")]
public class TimeInfoResponse { 


    [XmlElement(ElementName="resultCode")] 
    public string ResultCode { get; set; } 

    [XmlElement(ElementName="resultDesc")] 
    public string ResultDesc { get; set; } 

    [XmlElement(ElementName="timeRegInfo")] 
    public List<TimeRegInfo> TimeRegInfo { get; set; } 
}

public class TimeRegInfo { 

    [XmlElement(ElementName="periodId")] 
    public string PeriodId { get; set; } 

    [XmlElement(ElementName="startTime")] 
    public string StartTime { get; set; } 

    [XmlElement(ElementName="endTime")] 
    public string EndTime { get; set; } 

    [XmlElement(ElementName="regTotalCount")] 
    public int RegTotalCount { get; set; } 

    [XmlElement(ElementName="regLeaveCount")] 
    public int RegLeaveCount { get; set; } 
}
